﻿<div class="bjui-pageHeader">
    <form id="pagerForm" data-toggle="ajaxsearch" action="${request.getContextPath()}/eqpOee/eqpOee" method="post">
        <div class="bjui-searchBar">
            <g:hiddenField name="SYS_QUERY_NAME" value="eqpOee" />
            <g:hiddenField name="EXPORT_CONTENT_NAME" value="Excel" />
            <label>开始时间<strong><span class="text-danger">*</span></strong>：</label>
            <input type="text" name="startTime" class="form-control"
                   data-toggle="datepicker" data-pattern="yyyy-MM-dd HH"
                   size="18" id="start-date-input" readonly value="${startTime.format('yyyy-MM-dd HH')}">&nbsp;
            <label>结束时间<strong><span class="text-danger">*</span></strong>：</label>
            <input type="text" name="endTime" class="form-control"
                   data-toggle="datepicker" data-pattern="yyyy-MM-dd HH"
                   size="18" id="end-date-input" readonly value="${endTime.format('yyyy-MM-dd HH')}" >&nbsp;
            <button type="submit" class="btn-default" data-icon="search">查询</button>&nbsp;
            <button type="button" class="btn-blue" onclick="javascript:bjuiExportExl('#pagerForm','${request.getContextPath()}/eqpOee/exportExcel')" data-icon="file-excel-o" title="导出Excel">导出Excel</button>&nbsp;
        </div>
    </form>
</div>
<div class="bjui-pageContent">


    <div style="margin:15px auto 0; width:96%;">
        <div class="row" style="padding: 0 8px;">
            <div class="col-md-12" id="glassOutReportTable">

                    <table data-toggle="tablefixed" data-width="100%" data-nowrap="true">
                        <thead>
                        <tr>
                            <th width="50" align="center">NO.</th>
                            <th width="70" align="center">设备名称</th>
                            <th width="80" align="center">设备类型</th>
                            <th width="80" align="center">设备状态</th>
                            <th width="80" align="center">IDLE(%)</th>
                            <th width="80" align="center">RUN(%)</th>
                            <th width="80" align="center">ADDMON(%)</th>
                            <th width="80" align="center">ALARM(%)</th>
                            <th width="80" align="center">PM/SETUP(%)</th>
                            <th width="80" align="center">RUN总时间(min)</th>
                        </tr>
                        </thead>
                        <tbody>
                        <g:each in="${eqpOeeList}" status="i" var="tableInstance">
                            <tr>
                                <td width="60">${i+1}</td>
                                <td width="80">${tableInstance.EQUIPMENT_ID}</td>
                                <td width="80">${tableInstance.EQP_TYPE}</td>
                                <td width="80">${tableInstance.SUB_STATE}</td>
                                <td width="110">${tableInstance.idle}%</td>
                                <td width="110">${tableInstance.RUN}%</td>
                                <td width="80">${tableInstance.adlmw}%</td>
                                <td width="80">${tableInstance.aadefpw}%</td>
                                <td width="80">${tableInstance.ps}%</td>
                                <td width="80">${tableInstance.RUN_TOTAL}</td>
                            </tr>
                        </g:each>
                        </tbody>
                    </table>
            </div>
        </div>
    </div>
</div>
